import {Component, OnInit} from '@angular/core'

@Component({
  selector: 'app-forms',
  templateUrl: './forms.component.html',
  styleUrls: ['./forms.component.scss']
})
export class FormsComponent implements OnInit {
  public UserInfo: any = {
    name: '',
    sex: '1',
    cityList: ['武汉', '深圳', '北京'],
    city: '武汉',
    hobby: [
      {
        title: '阅读',
        checked: false
      },
      {
        title: '跑步',
        checked: false
      },
      {
        title: '游戏',
        checked: true
      }
    ],
    mark: ''
  }

  constructor() {
  }

  ngOnInit(): void {
  }

  getNameVal($event: MouseEvent) {
    console.log(this.UserInfo)
  }
}
